package com.ihrm.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页结果类
 *   {
 *       “success": true,
 *       ”code":1000
 *       "message": "成功",
 *       "data": {
 *           "page": 1,
 *           "size": 10,
 *           "total": 50, // 总条数
 *           “rows”:
 *           "datas": [{},{}] // 数据列表
 *       }
 *
 *   }
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {

    private Long total;
    private List<T> datas;


}
